import request from '@/utils/request'

// 查询应收押金列表
export function listTbapartdepositreceivable(query) {
  return request({
    url: '/finance/tbapartdepositreceivable/list',
    method: 'get',
    params: query
  })
}

// 查询应收押金详细
export function getTbapartdepositreceivable(id) {
  return request({
    url: '/finance/tbapartdepositreceivable/' + id,
    method: 'get'
  })
}

// 新增应收押金
export function addTbapartdepositreceivable(data) {
  return request({
    url: '/finance/tbapartdepositreceivable',
    method: 'post',
    data: data
  })
}

// 修改应收押金
export function updateTbapartdepositreceivable(data) {
  return request({
    url: '/finance/tbapartdepositreceivable',
    method: 'put',
    data: data
  })
}

// 删除应收押金
export function delTbapartdepositreceivable(id) {
  return request({
    url: '/finance/tbapartdepositreceivable/' + id,
    method: 'delete'
  })
}
